<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Cotta extends MX_Controller {
	public function index($params)
	{
		if(isset($params['application_title']))
			$this->config->set_item('application_title',$params['application_title']);
			
		$this->load->view('welcome_message',array('params'=>$params));
	}
	
	public function _remap($method)
	{
		if ($method == 'index')
		{
			$this->show_version();
		}		
	}
	
	public function show_version()
	{
		echo 'Cotta v1.0';
	}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */